#!/bin/sh
#
# $Id: postrm 37 2011-11-26 14:26:44Z imooreyahoo@gmail.com $
#

set -e

. /etc/default/openmediavault
. /usr/share/openmediavault/scripts/helper-functions

if [ "$1" = "purge" ]; then

	if [ -e /etc/dnsmasq-dhcphosts ]; then
		/bin/rm /etc/dnsmasq-dhcphosts
	fi
	
	if [ -e /etc/dnsmasq-hosts ]; then
		/bin/rm /etc/dnsmasq-hosts
	fi	
	
	if [ -e /etc/dnsmasq-winshosts ]; then
		/bin/rm /etc/dnsmasq-winshosts
	fi
	
	if [ -e /etc/dnsmasq.d/omv.conf ]; then
		/bin/rm /etc/dnsmasq.d/omv.conf
	fi
	
	if [ -e /etc/default/dnsmasq-orig ]; then
		/bin/mv /etc/default/dnsmasq-orig /etc/default/dnsmasq
	fi
		
fi

exit 0
